package com.qf.cloud2203.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author ada
 * @since 2023-03-10
 */
@Data
@Document(indexName = "users-coupon-record",shards = 1,replicas = 1,createIndex = false)
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @Field(type = FieldType.Integer)
    private Integer id;
    @Field(type = FieldType.Keyword)
    private String username;
    @Field(type = FieldType.Keyword)
    private String phone;
    @Field(type = FieldType.Keyword)
    @TableField(exist = false)
    private String couponId;
    //@Field(type = FieldType.Keyword)
    //private List<Coupon> couponList;

}
